import { Injectable } from '@nestjs/common';
import { BannerService } from '~/modules/banner/banner.service';
import { BannerEntity } from '~/modules/banner/banner.entity';

@Injectable()
export class MiniappBannerService {
  constructor(
    private readonly bannerService: BannerService
  ) {}

  async getAll(tenantId: number): Promise<BannerEntity[]> {
    // 按照时间倒序排
    return await this.bannerService.getAll(tenantId);
  }
}
